package cn.funeralobjects.urms.repository;

import cn.funeralobjects.common.repository.CommonCloudRepository;
import cn.funeralobjects.urms.entity.EUserRes;

/**
 * @author FuneralObjects
 * Create date: 2020/6/10 3:05 PM
 */
public interface EUserResRepository extends CommonCloudRepository<EUserRes, Integer> {

    boolean existsAllByResCodeAndUserCodeAndDelSalt(String resCode, String userCode, Integer delSalt);

    boolean existsAllByUserCodeAndNameAndDelSalt(String userCode, String name, Integer delSalt);

    boolean existsAllByUserCodeAndNameAndDelSaltAndIdNot(String userCode, String name, Integer delSalt, Integer id);
}
